
def chunks(iterable, step):
    seq = tuple(iterable)
    for i in range(0, len(seq), step):
        yield seq[i:i+step]
